<?php

	$cmdlist[0] = "df -P | grep 'cciss\\|MediaFarm'";
	foreach($cmdlist as $cmd)
	{
		$result = exec($cmd, $arrResult, $return_var);
		if($arrResult)
		{
			$count = 0;
			foreach($arrResult as $result)
			{
				$r = sscanf($result, "%s %d %d %d %d%% %s");
				// path total used available capacity(%) mounted_on
				echo "$r[5],$r[1],$r[2],$r[3]<br/>";
			}
			$arrResult = null;
		}
	}
?>
